package com.nageoffer.jobtrain.admin.service.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 获取竞赛详情，OJ题目业务DTO
 * author：唐晨
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OjQuestionContestDTO {
    /**
     * oj题主键id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 题目标题
     */
    private String title;

    /**
     * 题目难度；0：简单，1：中等，2：困难
     */
    private Integer difficulty;

    /**
     * 竞赛题目排序字段
     */
    private Integer sortDesc;
}
